package org.news.web.domain.bo;


import org.news.web.domain.Users;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 用户业务对象 users
 *
 * @author Gu Ci
 * @date 2024-03-26
 */
@Data
@AutoMapper(target = UsersBo.class, reverseConvertGenerate = false)
public class UsersQTBo{

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { EditGroup.class })
    private Long userId;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String username;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空", groups = { AddGroup.class })
    private String password;


    /**
     * 再一次密码
     */
    private String repassword;

    /**
     *  code
     *  验证码
     */
    private String code;



    /**
     * 用户角色，普通用户、创作者或官方账号
     */
//    @NotNull(message = "用户角色，普通用户、创作者或官方账号 不能为空", groups = { AddGroup.class, EditGroup.class })
//    private Long role;


    /**
     * 头像图片链接
     */
    private String profilePicture;

    /**
     * 封面图片链接

     */
    private String coverPhoto;

    /**
     * 所在地
     */
    private String location;

    /**
     * 电话号码
     */
//    @NotBlank(message = "电话号码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;

    /**
     * 账号状态：活跃或停用
     */
//    @NotNull(message = "账号状态：活跃或停用不能为空", groups = { EditGroup.class })
    private Long status;


}
